package com.org.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

public class BusinessDto extends Page implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String corporation;

    private Integer province;

    private Integer city;

    private Integer county;

    private String address;

    /**
     * 1 个人职业房东 2 公司化公寓
     */
    private Integer type;

    private Integer status;

    private Integer userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Integer reserve1;

    private Integer reserve2;

    private String reserve3;

    private String reserve4;

    private String reserve5;

    /**
     * 营业执照
     */
    private String url;

    /**
     * 统一信征码
     */
    private String zheng;

    /**
     * 头像
     */
    private String headPicture;

    private String legalPersonName;

    /**
     * 身份证号
     */
    private String certNum;

    /**
     * 身份证正面
     */
    private String certPicture;

    /**
     * 身份证反面
     */
    private String certPicture2;

    /**
     * 手持身份证
     */
    private String certPicture3;

    /**
     * 品牌名
     */
    private String brandName;

    /**
     * 公寓网址
     */
    private String apartmentUrl;

    /**
     * 客服热线
     */
    private String serviceHotline;

    /**
     * 管理员
     */
    private String username;

    @Override
    public String toString() {
        return "BusinessDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", corporation='" + corporation + '\'' +
                ", province=" + province +
                ", city=" + city +
                ", county=" + county +
                ", address='" + address + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", userId=" + userId +
                ", createTime=" + createTime +
                ", reserve1=" + reserve1 +
                ", reserve2=" + reserve2 +
                ", reserve3='" + reserve3 + '\'' +
                ", reserve4='" + reserve4 + '\'' +
                ", reserve5='" + reserve5 + '\'' +
                ", url='" + url + '\'' +
                ", zheng='" + zheng + '\'' +
                ", headPicture='" + headPicture + '\'' +
                ", legalPersonName='" + legalPersonName + '\'' +
                ", certNum='" + certNum + '\'' +
                ", certPicture='" + certPicture + '\'' +
                ", certPicture2='" + certPicture2 + '\'' +
                ", certPicture3='" + certPicture3 + '\'' +
                ", brandName='" + brandName + '\'' +
                ", apartmentUrl='" + apartmentUrl + '\'' +
                ", serviceHotline='" + serviceHotline + '\'' +
                ", username='" + username + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCorporation() {
        return corporation;
    }

    public void setCorporation(String corporation) {
        this.corporation = corporation;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getCounty() {
        return county;
    }

    public void setCounty(Integer county) {
        this.county = county;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getReserve1() {
        return reserve1;
    }

    public void setReserve1(Integer reserve1) {
        this.reserve1 = reserve1;
    }

    public Integer getReserve2() {
        return reserve2;
    }

    public void setReserve2(Integer reserve2) {
        this.reserve2 = reserve2;
    }

    public String getReserve3() {
        return reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }

    public String getReserve4() {
        return reserve4;
    }

    public void setReserve4(String reserve4) {
        this.reserve4 = reserve4;
    }

    public String getReserve5() {
        return reserve5;
    }

    public void setReserve5(String reserve5) {
        this.reserve5 = reserve5;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getZheng() {
        return zheng;
    }

    public void setZheng(String zheng) {
        this.zheng = zheng;
    }

    public String getHeadPicture() {
        return headPicture;
    }

    public void setHeadPicture(String headPicture) {
        this.headPicture = headPicture;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getCertNum() {
        return certNum;
    }

    public void setCertNum(String certNum) {
        this.certNum = certNum;
    }

    public String getCertPicture() {
        return certPicture;
    }

    public void setCertPicture(String certPicture) {
        this.certPicture = certPicture;
    }

    public String getCertPicture2() {
        return certPicture2;
    }

    public void setCertPicture2(String certPicture2) {
        this.certPicture2 = certPicture2;
    }

    public String getCertPicture3() {
        return certPicture3;
    }

    public void setCertPicture3(String certPicture3) {
        this.certPicture3 = certPicture3;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getApartmentUrl() {
        return apartmentUrl;
    }

    public void setApartmentUrl(String apartmentUrl) {
        this.apartmentUrl = apartmentUrl;
    }

    public String getServiceHotline() {
        return serviceHotline;
    }

    public void setServiceHotline(String serviceHotline) {
        this.serviceHotline = serviceHotline;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
